package com.yonyou.cyxdms.sysAuth.service.service.dealerchannel;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyxdms.sysAuth.service.dto.CompanyDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.dealerchannel.TmDealerchannelDTO;
import com.yonyou.cyxdms.sysAuth.service.entity.CompanyPO;
import com.yonyou.cyxdms.sysAuth.service.vo.dealerchannel.DealerChannelDetailVO;
import com.yonyou.cyxdms.sysAuth.service.vo.dealerchannel.DealerChannelVO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

public interface DealerChannelService {
    /**
     * 查询-经销商公司维护列表(分页)
     *
     * @author adu
     * @since 2019/10/12
     */
    public IPage<CompanyPO> getDistributorList(Page page, Map<String, Object> queryCondition);

    /**
     * 查看-经销商公司
     * @author adu
     * @since 2019/10/17
     */
    public CompanyDTO getCompanyId(Integer companyId );

    /**
     * 新增-经销商公司维护列表
     *
     * @author adu
     * @since 2019/10/12
     */
    Integer addCompany(CompanyDTO companyDTO);
    /**
     * 修改经销商渠道信息
     *
     * @author dengqiang
     * @since 2019/7/23
     */
    Integer editDealerChannel(Long id, TmDealerchannelDTO dealerDto);

    /**
     * 按照ID查询经销商信息
     *
     * @author dengqiang
     * @since 2019/7/24
     */
    public DealerChannelDetailVO getDealerChannelById(Long id);

    List<Map> queryDealerInfoExport(Map<String, String> queryParam);

    List<Map<String, Object>> getDistributor();

    List<Map<String, Object>> getdistributorall();

    List<Map<String, Object>> getDistributors();

    /**
     * 查询-下发经销商
     * 2019-10-29 adu
     */
    public IPage<Map<String, Object>> getDealerInfos(Page page, Map<String, Object> queryCondition);

    Integer findDealerId(String ownerCode);
    /**
     * 查询车厂code
     *
     * @author maxingjian
     * @since 2019/12/21
     */
    String getGroupCodeByAppId(String appId);

}
